package com.ld.project.zkn.controller;

import com.github.pagehelper.Page;
import com.ld.project.zkn.pojo.User;
import com.ld.project.zkn.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



@RestController
public class IndexController {
    @Autowired
    private UserService userService;
    @RequestMapping({"index",""})
    private Page<User> index(){
       return userService.pageUser(0,2);
    }

    @RequestMapping("login")
    private String login(){
        return "登录页面";
    }

}
